<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2023/8/28
  Time: 10:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<% String error=request.getParameter("error"); %>
<%=error==null?"":"登陆失败" %>
<% Cookie list []=request.getCookies();
   String value="";
   for(Cookie i:list)
   {
       if(i.getName().equals("login"))
       {
           value=i.getValue();
       }
   }
%>
<form action="/Web1/login" method="post">
    <table>
        <tr>
            <td>用户名</td>
            <td><input class="a"  value="<%=value %>" name="name" type="text"></td>
        </tr>
        <tr>
            <td>密码：</td>
            <td>
                <input class="a" name="pass" type="text">
            </td>
        </tr>
        <tr>
            <td>记住账号：</td>
            <td>
                <input class="a" name="ck" type="checkbox">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="添加">
            </td>
        </tr>
    </table>
</form>

</body>
</html>
